home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * GDS203 : 不連続線分
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned char *GDS_append(unsigned char *wp,unsigned int size);
-
- void GDS_line(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2) {
-
- wp=GDS_append(wp,10);
- *(unsigned int *)(wp+0)=0x4000+2*32+8;
- *(signed int *)(wp+2)=x1;
- *(signed int *)(wp+4)=y1;
- *(signed int *)(wp+6)=x2;
- *(signed int *)(wp+8)=y2;
- }